﻿<?php
include"configtop.php"
?>
<?php
$user=$_POST["username"];
$pass=$_POST["pass"];
$email=$_POST["email"];
$sex=$_POST["sex"];
$date=$_POST["date"];
$month=$_POST["month"];
$year=$_POST["year"];
$realname=$_POST["realname"];
$displayname=$_POST["realname"];
$user=stripslashes($user);
$pass=stripslashes($pass);
$email=stripslashes($email);
$year=stripslashes($year);
$email=mysql_real_escape_string($email);
$user=mysql_real_escape_string($user);
$pass=mysql_real_escape_string($pass);
$year=mysql_real_escape_string($year);
$enpass=md5($pass);
$tb="user";
$res="insert into $tb(username,enpass,displayname,joindate,email,birthday,sex) values(\"$user\",\"$enpass\",\"$displayname\",CURDATE(),\"$email\",\"$year-$month-$date\",\"$sex\");";
$res=mysql_query($res);
if($res==1){
  echo("Your regestering was sucessfull, congras!<br>");
  echo("<meta http-equiv=\"Refresh\" content=\"3;url=index.php\"/>");
  }
else
  echo("Have a problem when fill form");
?>
<?php
include"configbot.php"
?>